#include <iostream>
#include <time.h>

using namespace std;

void weatherCast(string w = "pm2.5")
{
    time_t t = time(0);
    char tmp[64];
    strftime( tmp, sizeof(tmp), "%Y/%m/%d %X %A ",localtime(&t));
   // strftime( tmp, sizeof(tmp), "%Y/%m/%d %X %A ", localtime(&t) );
    cout<<tmp<< "today is weather "<<w<<endl;
}

// rainy sunshine windy snowy flogy pm2.5

int main()
{
    weatherCast();
    weatherCast();
    weatherCast();
    weatherCast("sunshine");
    weatherCast();
    weatherCast();
    return 0;
}

